package com.haiheng.common.bean

import com.google.gson.Gson
import com.haiheng.library_base.http.HttpResponse

/**
 *
 * @Des:
 * @Author: hwz
 * @Date:2022/6/1 0001
 * @Version: 1.0
 */
class FaceSynResourceBean (
    val result:FaceSynResource? = null
): HttpResponse()
data class FaceSynResource  @JvmOverloads constructor(
    val accessToken: String,
    val deviceFaceLibraryCode: String,
    val lastResourceBundleRecordId: Int,
    val libCode: String,
    val resourceMetaList: List<ResourceMeta>
){
    fun  toJson(): String{
        return Gson().toJson(this)
    }
}

data class ResourceMeta @JvmOverloads constructor(
    val createTime: String,
    val faceImageName: String,
    val faceImagePath: String,
    val id: String,
    val lastVisitTime: String,
    val mD5: String,
    val name: String,
    val optType: String,
    val relativeIdentityID: String,
    val relativePatronSn: String
)